<!DOCTYPE html>
<html>
<head>
    <title>工装周期性检测工单明细</title>
    #parse("sys/header.html")
    <style type="text/css">
        .SelectBG {
            background-color: #ff2f00;
        }
        .differentFlag {
            color:#FF0000 ;
        }
    </style>
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <Row :gutter="16" style="margin: 8px 0px 0px 1px">
            <div class="search-group">
                <i-col span="4">
                    <i-select placeholder="请选择要查看的工装" v-model="q.toolsFileId">
                        <i-option v-for="toolsBase in toolsBaseList" :value="toolsBase.id" :key="toolsBase.id">{{toolsBase.name}} {{toolsBase.mapNo}}
                        </i-option>
                    </i-select>
                </i-col>
                <i-button @click="query">查询</i-button>
                <i-button @click="reloadSearch">重置</i-button>
            </div>
        </Row>
        <Row :gutter="16" style="margin: 3px 0px 0px 0px;">
            <div class="buttons-group">
                #if($shiro.hasPermission("toolscheckticketitem:commit"))
                <i-button type="info" @click="commit" v-if="state == '1'"><i class="fa fa-pencil-square-o"></i>&nbsp;提交测量数据</i-button>
                #end
                #if($shiro.hasPermission("toolscheckticketitem:handle"))
                <i-button type="info" @click="handle"><i class="fa fa-pencil-square-o"></i>&nbsp;不合格处置</i-button>
                #end
            </div>
        </Row>
        <table id="jqGrid"></table>
    </div>
    <Card v-show="!showList">
        <p slot="title">{{title}}</p>
        <i-form ref="formValidate" :model="toolsCheckTicketItem" :rules="ruleValidate" :label-width="80">
            <Row>
                <i-col span="11">
                    <Form-item label="备注" prop="remark">
                        <i-input v-model="toolsCheckTicketItem.remark" placeholder="备注"/>
                    </Form-item>
                </i-col>
                <i-col span="11">
                    <Form-item label="最近一次更新时间" prop="gmtModified">
                        <i-input v-model="toolsCheckTicketItem.gmtModified" placeholder="最近一次更新时间"/>
                    </Form-item>
                </i-col>
            </Row>
            <Row>
                <i-col span="11">
                    <Form-item label="创建时间" prop="gmtCreate">
                        <i-input v-model="toolsCheckTicketItem.gmtCreate" placeholder="创建时间"/>
                    </Form-item>
                </i-col>
                <i-col span="11">
                    <Form-item label="确认人" prop="confirmor">
                        <i-input v-model="toolsCheckTicketItem.confirmor" placeholder="确认人"/>
                    </Form-item>
                </i-col>
            </Row>
            <Row>
                <i-col span="11">
                    <Form-item label="更换时间" prop="changeDate">
                        <i-input v-model="toolsCheckTicketItem.changeDate" placeholder="更换时间"/>
                    </Form-item>
                </i-col>
                <i-col span="11">
                    <Form-item label="检测人" prop="checker">
                        <i-input v-model="toolsCheckTicketItem.checker" placeholder="检测人"/>
                    </Form-item>
                </i-col>
            </Row>
            <Row>
                <i-col span="11">
                    <Form-item label="检测时间" prop="checkDate">
                        <i-input v-model="toolsCheckTicketItem.checkDate" placeholder="检测时间"/>
                    </Form-item>
                </i-col>
                <i-col span="11">
                    <Form-item label="验证结果" prop="validationResult">
                        <i-input v-model="toolsCheckTicketItem.validationResult" placeholder="验证结果"/>
                    </Form-item>
                </i-col>
            </Row>
            <Row>
                <i-col span="11">
                    <Form-item label="测量值" prop="measuredValue">
                        <i-input v-model="toolsCheckTicketItem.measuredValue" placeholder="测量值"/>
                    </Form-item>
                </i-col>
                <i-col span="11">
                    <Form-item label="判定标准ID" prop="judgeStandardId">
                        <i-input v-model="toolsCheckTicketItem.judgeStandardId" placeholder="判定标准ID"/>
                    </Form-item>
                </i-col>
            </Row>
            <Row>
                <i-col span="11">
                    <Form-item label="工装档案ID" prop="toolsFileId">
                        <i-input v-model="toolsCheckTicketItem.toolsFileId" placeholder="工装档案ID"/>
                    </Form-item>
                </i-col>
            </Row>
            <Form-item>
                <i-button type="primary" @click="handleSubmit('formValidate')">提交</i-button>
                <i-button type="warning" @click="reload" style="margin-left: 8px"/>
                返回</i-button>
                <i-button type="info" @click="handleReset('formValidate')" style="margin-left: 8px">重置</i-button>
            </Form-item>
        </i-form>
    </Card>
    <!-- 审核表单区域 -->
    <div id="reviewLayer" style="display: none;">
        <form class="form-horizontal">
            <div class="form-group">
                <div class="form-group">
                    <div class="col-sm-2 control-label">处置方式：</div>
                    <div class="col-sm-10" style="margin-top: 6px">
                        <i-input type="textarea" v-model="handleParam.remark" :rows="4" maxlength="255" show-word-limit  placeholder="审批备注"></i-input>
                    </div>
                </div>
            </div>
        </form>
    </div>
</div>

<script src="${rc.contextPath}/js/tools/toolscheckticketitem.js?_${date.systemTime}"></script>
</body>
</html>
